package pri.zxx.excelgenerate.excelhanler.excelentity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import pri.zxx.excelgenerate.excelhanler.ComponentEnum;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CustomCell {

    private String value;

    private Integer start;

    private Integer end;

    private ComponentEnum componentEnum = ComponentEnum.TEXT;

    public CustomCell(String value, Integer start, Integer end) {
        this.value = value;
        this.start = start;
        this.end = end;
    }

    /**
     * 模块标题cell
     */
    public static CustomCell moduleHeaderCell(String moduleName) {
//        return new CustomCell(moduleName, 0, ExcelGenerator.MAX_COLUMN_COUNT - 1, ComponentEnum.MODULE_TITLE);
        return null;
    }
}